





/*
 * Copyright (c) 2013-2014, starteasy Inc. All Rights Reserved.
 * 
 * Project Name: zynkt
 * $Id:  2016-10-24 22:53:09 $ 
 */
package cn.shine.zynkt.domain;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import cn.starteasy.core.common.domain.BaseDomain;

import java.util.*;

public class User extends BaseDomain<Integer>{
    /** 登录名 */
    private String loginName;
    /** 姓名 */
    private String userName;
    /** 密码 */
    private String password;
    /** 创建时间 */
    private java.util.Date createTime;
    /** 最后登录时间 */
    private java.util.Date lastLoginTime;

	public User(){
	}
    public void setLoginName(String value) {
        this.loginName = value;
    }

    public String getLoginName() {
        return this.loginName;
    }
    public void setUserName(String value) {
        this.userName = value;
    }

    public String getUserName() {
        return this.userName;
    }
    public void setPassword(String value) {
        this.password = value;
    }

    public String getPassword() {
        return this.password;
    }

    public void setCreateTime(java.util.Date value) {
        this.createTime = value;
    }

    public java.util.Date getCreateTime() {
        return this.createTime;
    }

    public void setLastLoginTime(java.util.Date value) {
        this.lastLoginTime = value;
    }

    public java.util.Date getLastLoginTime() {
        return this.lastLoginTime;
    }

	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
			.append("Id",getId())
			.append("LoginName",getLoginName())
			.append("UserName",getUserName())
			.append("Password",getPassword())
			.append("CreateTime",getCreateTime())
			.append("LastLoginTime",getLastLoginTime())
			.append("Status",getStatus())
			.toString();
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof User == false) return false;
		if(this == obj) return true;
		User other = (User)obj;
		return new EqualsBuilder()
			.append(getId(),other.getId())
			.isEquals();
	}
}

